package com.ruoyi.mes.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 产品BOM对象 pro_bom
 *
 * @author LongAndHao
 * @date 2023-04-04
 */
public class ProBom extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 产品id */
    private Long proId;

    /** 物料ID */
    private Long mtrId;

    /** BOM编号 */
    @Excel(name = "BOM编号")
    private String bomCode;

    /** 物料数量 */
    private Long mtrQuantity;



    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setProId(Long proId)
    {
        this.proId = proId;
    }

    public Long getProId()
    {
        return proId;
    }
    public void setMtrId(Long mtrId)
    {
        this.mtrId = mtrId;
    }

    public Long getMtrId()
    {
        return mtrId;
    }
    public void setBomCode(String bomCode)
    {
        this.bomCode = bomCode;
    }

    public String getBomCode()
    {
        return bomCode;
    }
    public void setMtrQuantity(Long mtrQuantity)
    {
        this.mtrQuantity = mtrQuantity;
    }

    public Long getMtrQuantity()
    {
        return mtrQuantity;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("proId", getProId())
            .append("mtrId", getMtrId())
            .append("bomCode", getBomCode())
            .append("mtrQuantity", getMtrQuantity())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
